yum install memcached
systemctl enable memcached.service
systemctl start memcached.service
systemctl status memcached.service
echo "stats settings" | nc localhost 11211
yum install php-pecl-memcache
yum install php-pecl-memcached
---------------------------------------------------
if Error
memcached[185446]: failed to listen on TCP port 11211: Cannot assign request
---------------------------------------------------
vi /etc/sysconfig/memcached
#OPTIONS="-l 127.0.0.1,::1"
OPTIONS="-l 127.0.0.1"